#
import time
# print(time.time())
# #
# time.sleep(3)
# print('_exit_')

# Example
# def get_time():
#     total = 0
#     for i in range(1, 100001):
#         total += i
#     return total
#
# t1 = time.time()
# print(get_time())
# time.sleep(2)
# t2 = time.time()
# print(t2 - t1)

t3 = time.localtime()
print(t3)
print(t3[0], t3[1], t3[2])
print(t3[3:6])

t4 = time.gmtime()
print(t4)

t = time.localtime(170000000)
print(t)
print(time.mktime(t))

t = time.localtime(1700000000)
fstr = time.strftime('%Y %m %d %H:%M:%S %p %A %j', t)
print(fstr)

birthday = '2025年06月05日 10:30:40'
t = time.strptime(birthday, '%Y年%m月%d日 %H:%M:%S')
print(t)
print(time.mktime(t))

